define(["jquery","template","bld/template/patient/patientList.tpl"],function($,template,tpl){
	var ui = {};

	var drawApplyTreatScheme = function(data){
		return template("tpl_patientList_applyTreatScheme",data);
	}
	var drawUserList = function(data){
		return template("tpl_patientList_userList",data);
	}
	var drawInfo = function(data){
		return template("tpl_patientList_info",data);
	}
	var drawCreatAuthor = function(data){
		return template("tpl_patientList_creatAuthor",data);
	}

	

	ui.applyTreatScheme = function(options){
		options.dom.html(tpl.applyTreatScheme());
		var h = drawApplyTreatScheme(options);
		options.dom.html(h);
	}
	ui.userList = function(options){
		$("#" + options.id).html(tpl.userList());
		var h = drawUserList(options);
		$("#" + options.id).html(h);
	}
	ui.info = function(options){
		$("#" + options.id).html(tpl.info());
		var h = drawInfo(options.data);
		$("#" + options.id).html(h);
	}
	ui.creatAuthor = function (options) {
		$("#" + options.id).html(tpl.creatAuthor());
		var h = drawCreatAuthor(options);
		$("#" + options.id).html(h);
	}

	return ui;
});